import request from '@/utils/request'

// 查询权益配置列表
export function listPrivilegeConfig(query) {
  return request({
    url: '/qywechat/privilegeConfig/list',
    method: 'get',
    params: query
  })
}

// 查询权益配置详细
export function getPrivilegeConfig(id) {
  return request({
    url: '/qywechat/privilegeConfig/' + id,
    method: 'get'
  })
}

// 新增权益配置
export function addPrivilegeConfig(data) {
  return request({
    url: '/qywechat/privilegeConfig',
    method: 'post',
    data: data
  })
}

// 修改权益配置
export function updatePrivilegeConfig(data) {
  return request({
    url: '/qywechat/privilegeConfig',
    method: 'put',
    data: data
  })
}

// 删除权益配置
export function delPrivilegeConfig(id) {
  return request({
    url: '/qywechat/privilegeConfig/' + id,
    method: 'delete'
  })
}
